import toto2

variables = {'x': -2}
simul_var = ['x']
simul_val = [[-1.15], [-1.0828125], [-1.015625], [-0.9484375], [-0.88125], [-0.8140625], [-0.746875], [-0.6796875], [-0.6125], [-0.5453125], [-0.478125], [-0.4109375], [-0.34375], [-0.2765625], [-0.209375], [-0.1421875], [-0.075], [-0.0078125], [0.059375], [0.1265625], [0.19375], [0.2609375], [0.328125], [0.3953125], [0.4625], [0.5296875], [0.596875], [0.6640625], [0.73125], [0.7984375], [0.865625], [0.9328125], [1.0], [1.0671875], [1.134375], [1.2015625], [1.26875], [1.3359375], [1.403125], [1.4703125], [1.5375], [1.6046875], [1.671875], [1.7390625], [1.80625], [1.8734375], [1.940625], [2.0078125], [2.075], [2.1421875], [2.209375], [2.2765625], [2.34375], [2.4109375], [2.478125], [2.5453125], [2.6125], [2.6796875], [2.746875], [2.8140625], [2.88125], [2.9484375], [3.015625], [3.0828125], [3.15]]


parser = toto2.RpnMathParser("3*x", variables); 
parser.print_result()
print parser.converter.rpn

results = parser.update(simul_var,simul_val); 
print results

    






